<?php
/**
 * (ajax)
 */
namespace App\Admin\Ajax\OverSeasBa;

use Illuminate\Support\Facades\Artisan;
class BoxFnSkuAjax {

    public function syncBoxFNSku(): \Illuminate\Http\JsonResponse
    {
        try{
            Artisan::call('os-ba:sync-box-fnsku');
            return response()->json(['status' => true, 'message' => '同步成功！']);
        }catch (\Exception $e){
            report($e);
            return response()->json(['status' => false, 'message' => '系统错误']);
        }
    }
}
